.class Lcom/waiqin365/lightapp/store/f;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/compons/view/d;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/store/StoreCartActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/store/StoreCartActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    const/4 v4, 0x1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->p(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->b(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/f;->g(Ljava/lang/String;)Lcom/waiqin365/base/db/jxccache/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->q(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Lcom/waiqin365/lightapp/store/c/a;

    move-result-object v1

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/a;->a()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/store/c/a;->h:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->q(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Lcom/waiqin365/lightapp/store/c/a;

    move-result-object v1

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/a;->d()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/store/c/a;->i:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->q(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Lcom/waiqin365/lightapp/store/c/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->r(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/store/c/a;->q:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->q(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Lcom/waiqin365/lightapp/store/c/a;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/store/c/a;->r:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->g(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/jxccache/g;

    iget-object v2, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->q(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Lcom/waiqin365/lightapp/store/c/a;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/store/c/a;->r:Ljava/util/List;

    new-instance v3, Lcom/waiqin365/lightapp/product/d/d;

    invoke-direct {v3, v0}, Lcom/waiqin365/lightapp/product/d/d;-><init>(Lcom/waiqin365/base/db/jxccache/g;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->q(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Lcom/waiqin365/lightapp/store/c/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->f(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->q()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/store/c/a;->m:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->s(Lcom/waiqin365/lightapp/store/StoreCartActivity;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->t(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->dismiss()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->u(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setEnabled(Z)V

    goto/16 :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->t(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->dismiss()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/store/f;->a:Lcom/waiqin365/lightapp/store/StoreCartActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/store/StoreCartActivity;->u(Lcom/waiqin365/lightapp/store/StoreCartActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setEnabled(Z)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c0064
        :pswitch_2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
